﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ChinaDynastyTours.Controls;
using DevExpress.XtraEditors.Controls;
using DevExpress.XtraScheduler;
using DevExpress.XtraScheduler.UI;

namespace ChinaDynastyTours.Views
{
    public partial class MyAppointmentForm : DevExpress.XtraScheduler.UI.AppointmentForm
    {
        public MyAppointmentForm(SchedulerControl control, Appointment apt) : base(control, apt) { }

        protected override void UpdateForm() {
            // Required to initialize controls that represent custom fields
            InitializeComponent();
            base.UpdateForm();
        }

        //public class MyRemindersForm : RemindersForm
        //{
        //    public MyRemindersForm(SchedulerStorage storage)
        //        : base(storage)
        //    {
        //    }
        //    protected override bool CanEditAppointment(Appointment apt)
        //    {
        //        return false; // to enable the "Open Item" button
        //    }
        //    protected override void EditAppointment(Appointment apt)
        //    {
        //        // show the appointment edit form here
        //    }

        //    protected override RemindersFormDefaultAction CalculateRemindersFormDefaultAction()
        //    {
        //        return RemindersFormDefaultAction.SnoozeAll;
        //    }
        //}
        //protected override RemindersFormDefaultAction CalculateRemindersFormDefaultAction()
        //{
        //    return RemindersFormDefaultAction.SnoozeAll;
        //}


    }

}
